package org.easymis.crm.modules.biplatform.entitys.mybatis.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.easymis.crm.modules.biplatform.entitys.mybatis.dto.Card;

public interface CardMapper {
	@Select("SELECT * FROM bi_card")
	@Results({ @Result(property = "cardId", column = "card_id"), @Result(property = "cardName", column = "card_name") })
	public List<Card> getList(HashMap<String, Object> params);
	@Insert("INSERT INTO bi_card(card_id,card_name)values(#{cardId},#{cardName})")
	public void save(Card bean);

	public void saveBatch(List<Card> beans);

	public void update(Card bean);

	public void delete(String CardId);

	public void removeBatch(List<String> list);

	public void restoreBatch(List<String> list);

	public void deleteBatch(List<String> list);

	public Card findById(String CardId);

	public Card findByCardame(String Cardname);

	public List<Card> findByIds(List<String> list);

	@Select("SELECT * FROM bi_card ")
	@Results({ @Result(property = "cardId", column = "card_id"), @Result(property = "cardName", column = "card_name") })
	public List<Card> findByDashboardId(String Cardname);

}
